package kr.co.m2soft.model.document
{
	import kr.co.m2soft.model.BaseModel;
	import kr.co.m2soft.model.IBaseModelParser;
	import kr.co.m2soft.model.page.PG;
	
	import mx.collections.ArrayCollection;

	public class Body extends BaseModel implements IBaseModelParser
	{
		private var _elements:ArrayCollection;
		
		public function Body()
		{
			//_elements = new ArrayCollection();
		}
		public function parser():void
		{
			if(dataProvider.PG)
			{
				_elements = new ArrayCollection();
				for each(var pageItem:* in dataProvider.PG)
				{
					
					var pg:PG = new PG();
					pg.dataProvider = pageItem;
					pg.parser();
					_elements.addItem(pg);
				}
				
			}
		}
		public function get elements():ArrayCollection
		{
			return _elements;
		}

		public function set elements(value:ArrayCollection):void
		{
			_elements = value;
		}


	}
}